package ch12;

public class Example12_1 {
    public static void main(String[] args) {
        SpeakElephant speakElephant;
        SpeakCar speakCar;
        speakCar = new SpeakCar();
        speakElephant = new SpeakElephant();
        speakElephant.start();
        speakCar.start();
        for(int i=1;true;i++){
            System.out.print("主人"+i+" ");
        }
    }
}
